From: Johan Hovold Date: Tue, 1 Sep 2015 10:25:24 +0000 (+0200) Subject: greybus: endo: fix endo-id allocation flag X-Git-Tag: archive/raspbian/4.9.13-1+rpi1~10^2~1451^2~378^2~21^2~1251 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c01c77ce4b2a7a39134d90f90ab964926ef88123;p=linux-4.9.git greybus: endo: fix endo-id allocation flag Use GFP_KERNEL for endo ida allocation in gb_endo_register, which is not called from atomic context. Signed-off-by: Johan Hovold Reviewed-by: Viresh Kumar --- diff --git a/drivers/staging/greybus/endo.c b/drivers/staging/greybus/endo.c index baa4aa581096..84d695df2d62 100644 --- a/drivers/staging/greybus/endo.c +++ b/drivers/staging/greybus/endo.c @@ -439,7 +439,7 @@ static int gb_endo_register(struct greybus_host_device *hd, { int retval; - retval = ida_simple_get(&greybus_endo_id_map, 0, 0, GFP_ATOMIC); + retval = ida_simple_get(&greybus_endo_id_map, 0, 0, GFP_KERNEL); if (retval < 0) return retval;